package com.hqyj.pojo;

import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
import java.util.List;

@Data
@Table
public class Order {

    @Id
    @KeySql(useGeneratedKeys = true)
    private Integer id;

    private String orderCode;

    private Integer userId;

    private String address;

    private String post;

    private String receiver;

    private String mobile;

    private String userMessage;

    private Date createDate;

    private Date payDate;

    private Date deliveryDate;

    private Date confirmDate;

    private String status;

    private String postMethod;

    private Double postage;

    private Double total;

    private User user;//收货人





}